import service from '@/utils/request'

// @Tags MasterBomProductDocument
// @Summary 创建masterBom-成品主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBomProductDocument true "创建masterBom-成品主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /masterBomProductDocument/createMasterBomProductDocument [post]
export const createMasterBomProductDocument = (data) => {
  return service({
    url: '/masterBomProductDocument/createMasterBomProductDocument',
    method: 'post',
    data
  })
}

// @Tags MasterBomProductDocument
// @Summary 删除masterBom-成品主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBomProductDocument true "删除masterBom-成品主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBomProductDocument/deleteMasterBomProductDocument [delete]
export const deleteMasterBomProductDocument = (params) => {
  return service({
    url: '/masterBomProductDocument/deleteMasterBomProductDocument',
    method: 'delete',
    params
  })
}

// @Tags MasterBomProductDocument
// @Summary 批量删除masterBom-成品主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除masterBom-成品主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBomProductDocument/deleteMasterBomProductDocument [delete]
export const deleteMasterBomProductDocumentByIds = (params) => {
  return service({
    url: '/masterBomProductDocument/deleteMasterBomProductDocumentByIds',
    method: 'delete',
    params
  })
}

// @Tags MasterBomProductDocument
// @Summary 更新masterBom-成品主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBomProductDocument true "更新masterBom-成品主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /masterBomProductDocument/updateMasterBomProductDocument [put]
export const updateMasterBomProductDocument = (data) => {
  return service({
    url: '/masterBomProductDocument/updateMasterBomProductDocument',
    method: 'put',
    data
  })
}

// @Tags MasterBomProductDocument
// @Summary 用id查询masterBom-成品主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.MasterBomProductDocument true "用id查询masterBom-成品主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /masterBomProductDocument/findMasterBomProductDocument [get]
export const findMasterBomProductDocument = (params) => {
  return service({
    url: '/masterBomProductDocument/findMasterBomProductDocument',
    method: 'get',
    params
  })
}

// @Tags MasterBomProductDocument
// @Summary 分页获取masterBom-成品主档列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取masterBom-成品主档列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /masterBomProductDocument/getMasterBomProductDocumentList [get]
export const getMasterBomProductDocumentList = (params) => {
  return service({
    url: '/masterBomProductDocument/getMasterBomProductDocumentList',
    method: 'get',
    params
  })
}
